package com.person.title.service;

import java.util.List;

import com.person.title.model.Column;
import com.person.title.model.Title;
import com.person.title.model.TitleSub;

public interface TitleSubService {
	/**
	 * 新建子栏目
	 * @param sysFunc
	 * @return
	 */
	public char createTitleSub(TitleSub titleSub);
	
	/**
	 * 修改子栏目
	 * @param sysFunc
	 * @return
	 */
	public char modifyTitleSub(TitleSub titleSub);
	
	/**
	 * 删除子栏目
	 * @param sysFunc
	 * @return
	 */
	public char deleteTitleSub(TitleSub titleSub);
	
	/**
	 * 根据id查找一条记录
	 * @param funcId
	 * @return
	 */
	public TitleSub findTitleSubById(String subId);
	
	/**
	 * 新建子栏目时可供选择的上级节点select
	 * @return
	 */
	public List<Column> titleSelectList();
	
	/**
	 * 子栏目list
	 * @return
	 */
	public List<TitleSub> TitleSubList(String titleId);
	
	
	public List findTitleSubByCode(String[] titleCodeGroup);
	
	public List<TitleSub> juniorTitleSubList(String subId) ;
	
	public TitleSub findTitleSubByCode(String titleCode) ;
	
	public char modifyJuniorTitleSub(TitleSub titleSub, String subCode) ;
	
	/**
	 * 根据组代码长度查找所有的二级或者三级栏目
	 */
	public List<TitleSub> findAllTitleSub(int length);
	/**
	 * 根据funcId查找一条记录
	 * @param funcId
	 * @return
	 */
	public List<TitleSub> findTitleSubByfuncId(String funcId);
	
	
	public List<TitleSub> findTitleSubByTitleCodeGroup(String titleCode);
	public void update(TitleSub titleSub);
}
